﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Wicresoft.UnifyShow.Utility
{
    public static class StringExtension
    {
        public static DateTime? ToDateTime(this string obj)
        {
            if (string.IsNullOrWhiteSpace(obj)) return null;
            return DateTime.Parse(obj);
        }
    }
}
